package pi.client.gui;

import java.awt.Font;
import java.awt.Graphics;
import java.awt.event.MouseEvent;

@SuppressWarnings("serial")
public class MyPanelIntro extends MyPanelBase{
	public MyPanelIntro(MyMainPanel mainPanel, String backgroundFilename, int width, int height){
		super(mainPanel, backgroundFilename, width, height);
	}
	
	@Override protected void MouseClickedEvent(MouseEvent e){
		mainPanel.SetCurrentPanel(mainPanel.loginPanel);
	}
	
	@Override protected void Draw(Graphics g){
		super.Draw(g);
		
		Font oldF = g.getFont();
		g.setFont(new Font(Font.SANS_SERIF, Font.CENTER_BASELINE | Font.ITALIC, 26));
		DrawTitle(g, "King Of Wars", width/2, 150);
		g.setFont(oldF);
	}
}